package top.yuechenc.manage.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author wangzhiwei
 */
@ApiModel(value = "category 对象", description = "商品类型对象 category")
@Table(name = "sp_category")
public class SpCategory {
    /**
     * 分类唯一ID
     */
    @ApiModelProperty(value = "类型编号", name = "catId")
    @Id
    @Column(name = "cat_id")
    private String catId;

    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称", name = "catName")
    @Column(name = "cat_name")
    private String catName;

    /**
     * 分类父ID
     */
    @Column(name = "cat_pid")
    @ApiModelProperty(value = "分类父ID", name = "catPid")
    private String catPid;

    /**
     * 分类层级 0: 顶级 1:二级 2:三级
     */
    @ApiModelProperty(value = "catLevel", name = "分类层级",example = "2")
    @Column(name = "cat_level")
    private Integer catLevel;

    /**
     * 是否删除 1为删除
     */
    @Column(name = "cat_deleted")
    private Integer catDeleted;


    @Column(name = "cat_icon")
    private String catIcon;

    @Column(name = "cat_src")
    private String catSrc;

    /**
     * 获取分类唯一ID
     *
     * @return cat_id - 分类唯一ID
     */
    public String getCatId() {
        return catId;
    }

    /**
     * 设置分类唯一ID
     *
     * @param catId 分类唯一ID
     */
    public void setCatId(String catId) {
        this.catId = catId;
    }

    /**
     * 获取分类名称
     *
     * @return cat_name - 分类名称
     */
    public String getCatName() {
        return catName;
    }

    /**
     * 设置分类名称
     *
     * @param catName 分类名称
     */
    public void setCatName(String catName) {
        this.catName = catName;
    }

    /**
     * 获取分类父ID
     *
     * @return cat_pid - 分类父ID
     */
    public String getCatPid() {
        return catPid;
    }

    /**
     * 设置分类父ID
     *
     * @param catPid 分类父ID
     */
    public void setCatPid(String catPid) {
        this.catPid = catPid;
    }

    /**
     * 获取分类层级 0: 顶级 1:二级 2:三级
     *
     * @return cat_level - 分类层级 0: 顶级 1:二级 2:三级
     */
    public Integer getCatLevel() {
        return catLevel;
    }

    /**
     * 设置分类层级 0: 顶级 1:二级 2:三级
     *
     * @param catLevel 分类层级 0: 顶级 1:二级 2:三级
     */
    public void setCatLevel(Integer catLevel) {
        this.catLevel = catLevel;
    }

    /**
     * 获取是否删除 1为删除
     *
     * @return cat_deleted - 是否删除 1为删除
     */
    public Integer getCatDeleted() {
        return catDeleted;
    }

    /**
     * 设置是否删除 1为删除
     *
     * @param catDeleted 是否删除 1为删除
     */
    public void setCatDeleted(Integer catDeleted) {
        this.catDeleted = catDeleted;
    }

    /**
     * @return cat_icon
     */
    public String getCatIcon() {
        return catIcon;
    }

    /**
     * @param catIcon
     */
    public void setCatIcon(String catIcon) {
        this.catIcon = catIcon;
    }

    /**
     * @return cat_src
     */
    public String getCatSrc() {
        return catSrc;
    }

    /**
     * @param catSrc
     */
    public void setCatSrc(String catSrc) {
        this.catSrc = catSrc;
    }
}